#ifndef _NE_MATERIAL_FILE_FORMAT_H_
#define _NE_MATERIAL_FILE_FORMAT_H_

#include <neinit.h>

namespace ne
{
    const uint32_t MATERIAL_FILE_MAGIC_NUMBER = 0x1222;
    const uint32_t MATERIAL_FILE_VERSION = 1;
    const uint32_t MAX_STRING_LENGTH_IN_MATERIAL_FILE = 0x80;

    struct MaterialHeader
    {
        uint32_t mMagicNum;
        uint32_t mVersion;
        char mName[MAX_STRING_LENGTH_IN_MATERIAL_FILE];
        real mAmbient[4];
        real mDiffuse[4];
        real mSpecular[4];
        real mEmission[4];
        real mShininess;
        bool mTransparent;
        bool mTransparentCutout;
        bool mFogEnable;
        bool mSelfIlluminated;
        bool mLightEnable;
        bool mCastShadow;
        bool mReceiveShadow;
    };
}

#endif
